package proj3;

public class Neuron {
	protected Double _y;
	private Double _g;
	private Double _t;
	
	Neuron(Double y, Double g, Double t) {
		_y = y;
		_g = g;
		_t = t;
	}
	
	public double getO() {
		return 1.0/(1 + Math.exp(-_g*_y));
	}

	public Double get_y() {
		return _y;
	}

	public void set_y(double _y) {
		this._y = _y;
	}

	public Double get_g() {
		return _g;
	}

	public void set_g(double _g) {
		this._g = _g;
	}

	public Double get_t() {
		return _t;
	}

	public void set_t(double _t) {
		this._t = _t;
	}

	public void reset() {
		set_y(0.0);
	}
	
	
}
